/**
 * 
 */
package fr.fermeManager.library.model.beans;

import fr.fermeManager.library.model.constantes.EnumUserType;

/**
 * @author Mo
 *
 */
public class UserFermeManager {
	
	private int id;
	
	private String nom;
	
	private String prenom;
	
	private String login;
	
	private String password;
	
	private EnumUserType type = EnumUserType.INVITE;
	
	private boolean authentifie = false;
	
	public boolean isAdmin(){
		if(type == EnumUserType.ADMIN)
			return true;
		return false;
	}
	
	/**
	 * @return the nom
	 */
	public String getNom() {
		return nom;
	}

	/**
	 * @param nom the nom to set
	 */
	public void setNom(String nom) {
		this.nom = nom;
	}

	/**
	 * @return the prenom
	 */
	public String getPrenom() {
		return prenom;
	}

	/**
	 * @param prenom the prenom to set
	 */
	public void setPrenom(String prenom) {
		this.prenom = prenom;
	}

	/**
	 * @return the login
	 */
	public String getLogin() {
		return login;
	}

	/**
	 * @param login the login to set
	 */
	public void setLogin(String login) {
		this.login = login;
	}

	/**
	 * @return the password
	 */
	public String getPassword() {
		return password;
	}

	/**
	 * @param password the password to set
	 */
	public void setPassword(String password) {
		this.password = password;
	}

	/**
	 * @return the type
	 */
	public EnumUserType getType() {
		return type;
	}

	/**
	 * @param type the type to set
	 */
	public void setType(EnumUserType type) {
		this.type = type;
	}

	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}

	/**
	 * @return the authentifie
	 */
	public boolean isAuthentifie() {
		return authentifie;
	}

	/**
	 * @param authentifie the authentifie to set
	 */
	public void setAuthentifie(boolean authentifie) {
		this.authentifie = authentifie;
	}
	

}
